package polymorphic.Class.classInterface;

/**
 * 稿费收入税率是20%
 */
public class RoyaltyIncome implements Income {
    double income;

    public RoyaltyIncome(double income) {
        this.income = income;
    }

    public double getTax() {
        return income * 0.05;
    }

}
